import Layout from '@/layout'
export default {
  path: '/employee',
  name: 'employee',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employee',
      component: () => import('@/views/employee/index.vue'),
      meta: { title: '员工', icon: 'people' }
    },
    // 动态路由后面传的数据加问号表示后面数据可加可不加
    /*
    *同时数据可以使用正则匹配,将正则规则加在路由地址后面
    *也可以使用(foo/)?bar,表示二选一
    */
    {
      path: 'detail/:id?',
      name: 'employeeDetail',
      component: () => import('@/views/employee/detail'),
      meta: { title: '员工详情' },
      hidden: true
    }
    /*  {
      path: 'detail',
      name: 'employeeDetail',
      component: () => import('@/views/employee/detail'),
      meta: { title: '员工详情' },
      hidden: true
    } */
  ]
}
